extends Node

## 是否启用屏幕振动
var is_screen_shake_enabled: bool = true
## 音乐音量
var music_volume: int = 3
## 音效音量
var sound_volume: int = 5


func set_screen_shake_enabled(enabled: bool):
	is_screen_shake_enabled = enabled


func set_music_volume(volume: int, db: float):
	music_volume = volume
	AudioServer.set_bus_volume_db(GlobalConstants.AudioBus.MUSIC_INDEX, db)


func set_sound_volume(volume: int, db: float):
	sound_volume = volume
	AudioServer.set_bus_volume_db(GlobalConstants.AudioBus.SFX_INDEX, db)
